import request from "@/utils/request";

const baseURL = "/pay";

/**
 * 统一下单
 */
export const unifiedOrder = (orderId: string, wayCode: string = "WX_JSAPI") =>
  request<UnifiedOrderResp>({
    url: `${baseURL}/unifiedOrder`,
    method: "get",
    params: { orderId, wayCode },
  });
